﻿namespace Pp.Dto
{
    using System;
    using Globalization;

    public class AngelDto
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
    }
    public class AngelRequestDto
    {
        public Guid Id { get; set; }
        public UserSmallDto User { get; set; }
        public ProjectSmallDto Project { get; set; }
        public AngelRequestStateDto State { get; set; }

        public string ToStateString
        {
            get
            {
                return State == AngelRequestStateDto.New
                           ? Res.Message_ApprovalAwaiting
                           : State == AngelRequestStateDto.Appro
                                 ? Res.Message_Appro
                                 : State == AngelRequestStateDto.Cancel ? Res.Message_Canceled : Res.Message_NotWorking;
            }
        }
    }

    public enum AngelRequestStateDto
    {
        New, Appro, Cancel
    }
}